/**
 * 定义了一个模型，对应后台的user类，包含其所有要展示的字段信息
 */
Ext.define('app.model.User', {
	
	extend: 'Ext.data.Model',
	
	idProperty: 'id',
	fields: [
		{name: 'id', type: 'integer'},
		{name: 'username', type: 'string'},
		{name: 'nickname', type: 'string'},
		{name: 'realname', type: 'string'},
		{name: 'age', type: 'integer'},
		{name: 'idcard', type: 'string'},
		{name: 'gender', type: 'string'},
		{name: 'phoneNumber', type: 'string'},
		{name: 'email', type: 'string'},
		{name: 'address', type: 'string'},
		{name: 'birthday', type: 'date', dateFormat: 'Y-m-d H:i:s'}
	]
}); 